<?php
		require('config.php');
		$user_id=$_REQUEST['user_id'];
		$address_id=$_REQUEST['address_id'];
		$shop_id=$_REQUEST['shop_id'];
		//$user_id=1;
		$sql="select * from `".$oto."_user_address` where `userId`='".$user_id."' and addressId='{$address_id}'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$user_address[]=$row;//将取得的所有数据赋值给person_info数组
		}
		$ad1=$user_address[0]['areaId1'];
		$ad2=$user_address[0]['areaId2'];
		$ad3=$user_address[0]['areaId3'];
		$ad4=$user_address[0]['communityId'];
		$sql="select * from `".$oto."_shops_communitys` where `shopId`='".$shop_id."' and areaId1='{$ad1}' and areaId2='{$ad2}' and areaId3='{$ad3}' and communityId='{$ad4}'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$shop_address[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(!isset($shop_address))
		{
			$return=0;
		}
		else
		{
			$return=1;
		}
		echo json_encode($return);
?>